package com.dragonboat.repository;
import com.dragonboat.entity.Event;
import org.apache.ibatis.annotations.Select;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;
public interface EventRepository extends JpaRepository<Event, Integer> {
    List<Event> findByStatus(String status);
    List<Event> findByOrganizerOrganizerId(Integer organizerId);

}
